package com.xm.service;

import com.xm.pojo.Users;
import com.xm.pojo.UsersReport;
import org.apache.catalina.User;

public interface UserService {

    /**
     * 判断用户名是否存在
     * @param username
     * @return
     */

    public boolean userIsExists(String username);

    /**
     * 保存用户
     * @param user
     */
    public void saveUser(Users user);

    /**
     * 用户登录
     * @param user
     * @return
     */
    public Users userLogin(Users user);

    /**
     * 更新用户数据
     * @param user
     */
    public void updataUserInfo(Users user);

    /**
     * 查询用户数据
     * @param userId
     * @return
     */
    public Users query(String userId);

    /**
     * 查询登录用户是否喜欢此视频
     * @param userId
     * @param videoId
     * @return
     */
    public boolean isUserLikeVideos(String userId,String videoId);

    /**
     * 关注用户
     * @param loginUserId
     * @param beFocusUserId
     */
    public void FocusOnUser(String loginUserId,String beFocusUserId);

    /**
     * 取消关注用户
     * @param loginUserId
     * @param beFocusUserId
     */
    public void UnFocusOnUser(String loginUserId,String beFocusUserId);

    /**
     * 查询是否有粉丝关系
     * @param loginUserId
     * @param beFocusUserId
     * @return
     */
    public boolean isFollow(String loginUserId,String beFocusUserId);

    /**
     * 举报用户
     * @param usersReport
     */
    public void reportUser(UsersReport usersReport);
}
